package org.centsuse.intention_spring.invention.config.scenes;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.centsuse.intention_spring.invention.factory.YamlPropertySourceFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import java.util.Map;

/**
 * 场景配置
 */
@Component
@ConfigurationProperties(prefix = "app.scenes")
@PropertySource(value = "classpath:config/scenes-config.yml",
        factory = YamlPropertySourceFactory.class)
@Validated
@Data
@ToString
@NoArgsConstructor
public class SceneConfiguration {
    /**
     * 场景配置map
     */
    private Map<String, SceneConfig> sceneConfigMap;
}
